home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 53 / pcpp53a.iso / favourite unreal tournament mods / boomdeath.umod next >
Encoding:
INI File  |  2000-06-30  |  9.9 KB  |  223 lines

  1. [Setup]
  2. Product=BoomDeath
  3. Version=120
  4. Archive=boomdeath.umod
  5. SrcPath=.
  6. MasterPath=..
  7. Group=SetupGroup
  8. Group=umodINIGroup
  9. Group=BoomDeathGroup
  10. Group=umodIncludeFilesGroup
  11.  
  12. [SetupGroup]
  13. Copy=(Src=System\Manifest.ini,Master=System\Manifest.ini,Size=504,Flags=3)
  14. Copy=(Src=System\Manifest.int,Master=System\Manifest.int,Size=316,Flags=3)
  15.  
  16. [umodINIGroup]
  17. Ini=System\UnrealTournament.ini,BoomDeath.BoomDeath.BoomChance=20
  18.  
  19. [BoomDeathGroup]
  20. File=(Src=System\BoomDeath.u,Size=6271)
  21. File=(Src=System\BoomDeath.int,Size=390)
  22. File=(Src=System\boomdeath.txt,Size=1123)
  23.  
  24. [umodIncludeFilesGroup]
  25. File=(Src=System\boomdeath.txt,Size=1123)
  26.  
  27. [Setup]
  28. LocalProduct=BoomDeath
  29. ReadMe=System\boomdeath.txt
  30. SetupWindowTitle=BoomDeath Mutator
  31. AutoplayWindowTitle=BoomDeath Options
  32. ProductURL=http://www.planetunreal.com/nzone
  33. VersionURL=http://www.planetunreal.com/nzone
  34. Developer=William "Ntruder" Chenoweth
  35. DeveloperURL=http://www.planetunreal.com/nzone
  36. ┴â*₧E\@≤8DαOO∙╙╪╙▒9α}q╢┬\None
  37. BoomDeathSystemCoreUWindowCreatedBotMutatorTakeDamage PlayerPawnEngineNotifyCreateControl    GetValueSetTextBoomDeathConfigWindow    MenuHelpExecute MenuCaptionSetNumericOnly
  38. SetMaxLength SetHelpTextRegisterDamageMutatorBoomDeathMenuItemBoomDeathConfigClientUMenuPostBeginPlay    SetValue ClientClass WindowTitleC DamageTypeFloatProperty    LocationHealthEMutator
  39. RandRange ScriptText HitLocationGame InstigatorOwnerStaticSaveConfigVictim
  40. instigatedByStructPropertyClass
  41. LevelInfoObjectProperty    GameInfoPawnLevelObjectActor
  42. actualDamage    MomentumNextDamageMutatorUWindowEditControlUWindowPulldownMenuItemUWindowDialogClientWindowUWindowFramedWindowUWindowRootWindowUWindowDialogControlUWindowWindowUWindowPulldownMenuSetSize
  43. CreateWindowStructAlignWinLeft
  44. EditBoxWidth
  45. WinHeight    WinWidthWinTopRoot
  46. Explosion
  47. BoolProperty IntProperty
  48. NamePropertyPackageUMenuModMenuItem Initialized    MenuItemBotpack
  49. ShockWavechance
  50. ByteProperty TextBufferVector    Function BoomChance DeathChanceàÇåë                   gε─╕ëlÇñπå9δ }å9δ }å9δ }å9δ }å9δ }å9δ }ûylT⌐ëlÇñπÿÆ╘√R│ìü├╣    ç Çå@ûÇÉ                  2
  51. |s≈ΓÉⁿM╗∩öo √öo √ç ]BoomDeath Configurationô                   ⁿHR}ô┌π╠~êgε─╕àt╡≡êgε─╕àt╡≡àt╡≡àt╡≡àt╡≡àt╡≡àt╡≡àt╡≡êgε─╕çÇùÇ
  52. Ç£ÇùÇHclass BoomDeath expands Mutator;
  53.  
  54. var bool Initialized;
  55. var globalconfig int BoomChance;
  56.  
  57. function PostBeginPlay()
  58. {    
  59.     if (Initialized)    
  60.         return;
  61.     Initialized = True;
  62.     Level.Game.RegisterDamageMutator( Self );
  63. }
  64.  
  65. function MutatorTakeDamage( out int ActualDamage, Pawn Victim, Pawn InstigatedBy, out Vector HitLocation,
  66.     out Vector Momentum, name DamageType)
  67. {
  68.  
  69.     //local WarShell bigboom;
  70.     local Shockwave explosion;
  71.     local int chance;
  72.     if (InstigatedBy.IsA('Bot') || InstigatedBy.IsA('PlayerPawn'))    {
  73.         if (Victim.IsA('Bot') || Victim.IsA('PlayerPawn')) {
  74.             if (Victim.Health <= ActualDamage) {
  75.                 chance = int(RandRange(1, 100));
  76.                 if (chance <= BoomChance) {
  77.                     explosion = Spawn(class 'Shockwave',,,Victim.Location);
  78.                     explosion.Instigator = Victim;
  79.                 }
  80.             }
  81.         }
  82.     }
  83.  
  84.     if ( NextDamageMutator != None )
  85.         NextDamageMutator.MutatorTakeDamage( ActualDamage, Victim, InstigatedBy, HitLocation, Momentum, DamageType );
  86. }
  87.  
  88. ñ    ╔■─äa/!a/!─äa/!a/!─ÿÑ    D½Ç?╚B─ÿa û  íóⁿw¢*¢$      î                  25╥Edîëⁿ═╖Ü;aG░¿╒╢mΩöo √ç]BoomDeath Options]Set the options for BoomDeath⌐~. - -'¡ú ₧UX₧¼CHBª¼»òÖÖ?,º¼»òƒƒ?, gclass BoomDeathMenuItem expands UMenuModMenuItem;
  89.  
  90. function Execute()
  91. {
  92.  
  93. MenuItem.Owner.Root.CreateWindow(class'BoomDeathConfigWindow', 10, 10, 150, 100);
  94. }
  95.  
  96. áéá.à  à A A≡BÇ?
  97. BoomDeath Chance %APercent chance fragged player will explode Redeemer-style',░áA▒$S  »
  98. ΣW
  99. R$
  100. = J @
  101.    ▓U
  102.    Wclass BoomDeathConfigWindow expands UWindowFramedWindow;
  103.  
  104. function Created()
  105. {
  106.  
  107. Super.Created();
  108. SetSize(150, 50);
  109. WinLeft = (Root.WinWidth - WinWidth) / 2;
  110. WinTop = (Root.WinHeight - WinHeight) / 2;
  111. }
  112.  
  113. wclass BoomDeathConfigClient expands UWindowDialogClientWindow;
  114.  
  115. var UWindowEditControl DeathChance;
  116.  
  117. function Created()
  118. {
  119.  
  120. Super.Created();
  121.  
  122. DeathChance = UWindowEditControl(CreateControl(class'UWindowEditControl', 10, 10, 120, 1));
  123. DeathChance.SetText("BoomDeath Chance %");
  124. DeathChance.SetHelpText("Percent chance fragged player will explode Redeemer-style");
  125. DeathChance.SetNumericOnly(True);
  126. DeathChance.SetMaxLength(2);
  127. DeathChance.EditBoxWidth = 20;
  128. DeathChance.Align = TA_Left;
  129. DeathChance.SetValue(string(class'BoomDeath'.default.BoomChance));
  130. // You could of course add heaps of controls in here.
  131. // See the UMenu and UTMenu for a billion examples.
  132.  
  133. }
  134.  
  135.  
  136. function Notify(UWindowDialogControl C, byte E)
  137. {
  138.  
  139. switch(E)
  140. {
  141. case DE_Change:
  142. switch(C)
  143. {
  144. case DeathChance:
  145. class'BoomDeath'.default.BoomChance = int(DeathChance.GetValue());
  146. break;
  147. }
  148.  
  149. class'BoomDeath'.static.StaticSaveConfig();
  150. break;
  151.  
  152. }
  153.  
  154. }
  155.  
  156. ╢N<╡«ò¬ 
  157.  A AC╚B OOO    .    ?.    9.²   2.■   4.■   ..²   #.■   Y.■   0.±   P.²   5.■   WO.    <OS.■   M.    ;.    =0ⁿ   J.∩   TC∙   X.²   /ⁿ   H.    :0≈   8.    >.■   -Y≡   ⁿ   GYⁿ   -≤    0≤   (0Φ   'Y≈   M·   !ⁿ   Eⁿ   I.    @Y≤   Yⁿ   BY∙   $Yⁿ   A0≤   30µ   )Yφ   
  158. √   FVΣ   DY∙   *.²   1.■   N0⌠   RY⌠   .■   V.■   Lï [
  159. Iï+
  160. Vëocï,
  161. RÆZ _ÆU kïK
  162. w╕Q DÆ6 PÉF\ôSb¥&
  163. u!╖"
  164. B"ï
  165. O"¥7
  166. \"┤ i"Ä%4Su"èñzH2îiB5è⌐8k7è₧
  167. Sc8Ä%4rv9èá ]h<è»
  168. UE@Ä
  169. %4bZAÄ %4B|Dè╢F~S[Public]
  170. Object=(Name=BoomDeath.BoomDeath,Class=Class,MetaClass=Engine.Mutator,Description="BoomDeath, Percent chance dead players explode...")
  171. Object=(Name=BoomDeath.BoomDeathMenuItem,Class=Class,MetaClass=UMenu.UMenuModMenuItem)
  172.  
  173. Preferences=(Caption="Mutators",Parent="Advanced Options")
  174. Preferences=(Caption="BoomDeath",Parent="Mutators",Class=BoomDeath.BoomDeath,Immediate=True)
  175. -----------------
  176.  About BoomDeath
  177. -----------------
  178.  
  179. BoomDeath is my first UnrealScript.  I tried to learn the basics while
  180. writing this mutator.  All it does is set a percent chance that a 
  181. Redeemer warhead will explode after a player dies.  Frags are counted
  182. normally, with the exception that the dead player gets a frag for every
  183. player killed in their death-explosion.  This balances the game in a
  184. way because newbies have a chance to strike back when they are 
  185. constantly being fragged, and an expert player on a spree or rampage
  186. has an increased chance of being blown up and losing all their weapons
  187. and armor.  Of course, if you can get behind a wall before the 
  188. explosion...
  189.  
  190. Enjoy...
  191.  
  192. - William 'Ntruder' Chenoweth (ntruder@home.com)
  193.  
  194.  
  195.  
  196. ------------------
  197.  Revision History
  198. ------------------
  199.  
  200. 1.0 - My first Unrealscript, please excuse the lameness. ;)
  201.  
  202.  
  203. 1.2 - Added UWindows support with configurable range of 0-99%.
  204.       Warning: Lots of Redeemer explosions in a short range of time
  205.                can set off Unreal's infinite-loop catcher and halt
  206.                the game.
  207.  
  208. -----------------
  209.  About BoomDeath
  210. -----------------
  211.  
  212. BoomDeath is my first UnrealScript.  I tried to learn the basics while
  213. writing this mutator.  All it does is set a percent chance that a 
  214. Redeemer warhead will explode after a player dies.  Frags are counted
  215. normally, with the exception that the dead player gets a frag for every
  216. player killed in their death-explosion.  This balances the game in a
  217. way because newbies have a chance to strike back when they are 
  218. constantly being fragged, and an expert player on a spree or rampage
  219. has an increased chance of being blown up and losing all their weapons
  220. and armor.  Of course, if you can get behind a wall before the 
  221. explosion...
  222.  
  223. Enjoy...
  224.  
  225. - William 'Ntruder' Chenoweth (ntruder@home.com)
  226.  
  227.  
  228.  
  229. ------------------
  230.  Revision History
  231. ------------------
  232.  
  233. 1.0 - My first Unrealscript, please excuse the lameness. ;)
  234.  
  235.  
  236. 1.2 - Added UWindows support with configurable range of 0-99%.
  237.       Warning: Lots of Redeemer explosions in a short range of time
  238.                can set off Unreal's infinite-loop catcher and halt
  239.                the game.
  240.  
  241. System\Manifest.iniïSystem\Manifest.intï<System\BoomDeath.u╟System\BoomDeath.intFåSystem\boomdeath.txt╠cSystem\boomdeath.txt/"cú┼πƒÆ&o'$&ò